package com.core.model.user;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * Created with IntelliJ IDEA.
 * User: xf
 * Date: 2016/4/26
 * Time: 21:12
 * To change this template use Editor | File and Code Templates.
 */
@Document
public class Order {

    @Id
    private String id;
    @Field
    private String customer;
    private String type;

    public Order(String id, String customer, String type) {
        this.id = id;
        this.customer = customer;
        this.type = type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
